import 'package:cash_drawer/main.dart';
import 'package:device_info/device_info.dart';
import 'package:package_info/package_info.dart';

class Constants {
  static const String BASE_URL = "https://saastest.fuioupay.com/";

  static const int STATUS_SUCCESS = 0;
  static const String USERNAME_KEY = 'username_key';
  static const String COOKIES_KEY = 'cookies_key';
  static const String THEME_COLOR_KEY = 'theme_color_key';
  static const String DARK_KEY = 'dark_key';
  static const String SAVE_USER_LOGIN_KEY = "user/login";
  static const String SAVE_USER_REGISTER_KEY = "user/register";

  static final ChannelType channelType= ChannelType();
}

class AppConfig {
  static PackageInfo packageInfo;
  static const String appName = '点餐宝';
  static const String version = '1.0.0';
  static const int versionCode = 1;
  static const bool isDebug = true;
  static const String KEY_SAAS_MD5 = "fuiou2qazxsw@";
  static const String SYSTEM_TYPE = "Android";
  static String SN = "LDYF00015282";
  static AndroidDeviceInfo deviceInfo= null;
  static const String CHANNEL_TYPE = ChannelType.CHANNEL_SAAS;
  static String mchntCd = null; //商户代码
}

/** '渠道类型：00：扫码点餐，01:收银机' */
class  ChannelType{
  static const String CHANNEL_WX_APP = "00";
  static const String CHANNEL_SAAS = "01";
  static const String CHANNEL_ELE = "02"; //饿了么
  static const String CHANNEL_MEITUAN = "03"; //美团
  static const String CHANNEL_JBP = "04"; //聚宝盆
}
